//
//  AgreementView.h
//  DanaKreditLoan
//
//  Created by ZhengChengFeng on 2024/10/18.
//

#import <UIKit/UIKit.h>


NS_ASSUME_NONNULL_BEGIN

@protocol AgreementViewDelegate <NSObject>

@optional
- (void)agreeViewWillShowProtocol;
- (void)agreeViewWillAgreeProtocol:(BOOL)agree;

@end

@interface AgreementView : UIView

@property (nonatomic) NSString * protocol;
@property (nonatomic) NSString * title;
@property (nonatomic) UIColor *titleColor,*protocolColor;
@property (nonatomic) CGFloat fontSize;
@property (nonatomic) id<AgreementViewDelegate> delegate;

@property (nonatomic) BOOL isSel;
@property (nonatomic) NSString *agreeImgNameStr,*unagreeImgNameStr;

- (instancetype)initWithTitle:(NSString *)title withTitleColor:(UIColor *)color protocol:(NSString *)protocol withProtocolColor:(UIColor *)proColor fontSize:(CGFloat)fontSize target:(id)targer withSel:(BOOL)isSel withAgreeImg:(NSString *)agreeImgName withUnagreeImg:(NSString *)unagreeImgName;


@end

NS_ASSUME_NONNULL_END
